/**
 * 
 */
package cn.ac.istic.lkt.atv;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;

/**
 * @Author shicd
 * @Date   2009-7-18
 * 
 */
public class AboutDlg extends JDialog{
	/**
	 * 
	 */
	private static final long serialVersionUID = -4708387382180622938L;
	public AboutDlg(){
		setTitle("关 于");
		setLayout(new BorderLayout());
		JLabel info = new JLabel("ATViewer 1.0");
		
		getContentPane().add(info,BorderLayout.CENTER);
		JButton okButton = new JButton("确定");
		okButton.setAlignmentX(1);
		okButton.addActionListener(new java.awt.event.ActionListener()
        {
            public void actionPerformed(java.awt.event.ActionEvent evt)
            {
                performOK();
            }
        });
		//getContentPane().add(okButton,BorderLayout.SOUTH);
		
		setSize(300,200);
		//setVisible(true);
	}
	void performOK(){
		this.dispose();
	}
}
